//
//  QLMShareHelper.h
//  Xiaomakuaixiu
//
//  Created by 龚碧容 on 2017/10/31.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, QLMShareHelperShareType){
    QLMShareHelperShareTypeOthers,//其他
    QLMShareHelperShareTypeWeChat,//微信
    QLMShareHelperShareTypeQQ,//腾讯QQ
    QLMShareHelperShareTypeSina,//新浪微博
};

@interface QLMShareHelper : NSObject

+ (instancetype)shareHelper;
+ (BOOL)shareWithType:(QLMShareHelperShareType)type andController:(UIViewController *)controller andFilePath:(NSString *)path;
+ (BOOL)shareWithType:(QLMShareHelperShareType)type andController:(UIViewController *)controller andFileURL:(NSURL *)url;

/**
 分享方法
 @param type 分享类型
 @param controller 展示的控制器
 @param items 所有的分享对象 可以包括的类型是<UIimage NSURL>两种类型
 @return 返回分享结果 如果是No表示没有安装,请自行处理.
 */
+ (BOOL)shareWithType:(QLMShareHelperShareType)type andController:(UIViewController *)controller andItems:(NSArray *)items;
- (BOOL)shareWithType:(QLMShareHelperShareType)type andController:(UIViewController *)controller andItems:(NSArray *)items;

@end
